export default function (initialState: any) {
  console.log('initialState');
  console.log(initialState);

  const { userRouters } = initialState;

  let accessMap = {};

  if (userRouters) {
    userRouters.map((m) => {
      if (m.perms) accessMap[m.perms] = true;
    });
  }

  console.log('accessMap');
  console.log(accessMap);
  return accessMap;
}
